﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using System.Data.SqlClient;

namespace FYPHP
{
    public partial class AdminControlPanel : System.Web.UI.Page
    {
        SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["fyphp"].ConnectionString);

        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["Role"].ToString() == "Admin")
            {
                Panel1.Visible = true;
                Panel2.Visible = false;
            }
            else if (Session["Role"].ToString() == "Staff")
            {
                Panel1.Visible = false;
                Panel2.Visible = true;
            }
        }
    }
}